import type { IList, IResult } from "@/types/common";
import { getAxios } from "@/utils/request.ts";
/* 后台用户用户 */
const url = "/admin/user/master";

/* 获取后端用户列表信息 */
export const getMasterList = <T, D>(params: D): Promise<IResult<IList<T>>> => {
  return getAxios<IList<T>, D>(url, params);
};

/* 获取客服列表（通过组织获取客服） */
export const getCustomerList = <T, D>(params: D): Promise<IResult<IList<T>>> => {
  return getAxios<IList<T>, D>(url + "/customer", params);
};
